package org.metasketch.ham.diagrams.units;

import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Line;
import javafx.scene.shape.Rectangle;

public class ActorNode extends ParticipationUnitNode {

	public ActorNode() {
		Rectangle rect = new Rectangle(0, 0, width, height);
		rect.setFill(Color.TRANSPARENT);

		Circle head = new Circle(width * 0.5, width * 0.5, width * 0.5);
		head.setStroke(Color.BLACK);
		head.setFill(Color.WHITE);

		Line arms = new Line(-width * 0.25, width, width + width * 0.25, width);

		Line leftLeg = new Line(0, height, width * 0.5, width);
		Line rightLeg = new Line(width, height, width * 0.5, width);

		getChildren().addAll(rect, head, arms, leftLeg, rightLeg);

	}

}
